from twisted.web.server import Site
from twisted.web.resource import Resource
from twisted.internet import reactor
from twisted.web.static import File


class doLogin(Resource):
    def render_GET(self, requesty):
        return "<h1>Hello</h1>"


root = Resource()
root.putChild("login", doLogin)


factory = Site(root)
reactor.listenTCP(8011, factory)
reactor.run()
